﻿using Microsoft.EntityFrameworkCore;
using Model;

namespace Dal
{
    public class MyDbContext : DbContext
    {
        private readonly DbContextOptions options;

        public MyDbContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<UserInfo> userInfos { get; set; }
        /// <summary>
        /// 用户等级
        /// </summary>
        public DbSet<UserType> userTypes { get; set; }
    }
}
